<div class="floatwrapper">
    <div class="lfloat">
	<h5 tal:content="type/name|default"/>
    </div>
    <div class="rfloat">
	<a tal:attributes="href php:this.link('object_create') . '?type=' . type.slug" ><tal:block i18n:translate="string:Add"/> <tal:block tal:content="type/name|default"/></a>
    </div>
</div>
<div>
    <p tal:condition="empty:objects" i18n:translate="string:No objects defined"></p>

    <table tal:condition="not:empty:objects" class="silk-cms-list">
	<thead>
	    <tr>
		<th i18n:translate="string:id"/>
		<th i18n:translate="string:name"/>
		<th i18n:translate="string:actions" class="silk-cms-row-actions">actions</th>
	    </tr>
	</thead>

	<tbody>
	    <tr tal:repeat="object objects">
		<td><tal:block tal:content="object/object_id|default"/></td>
		<td><tal:block tal:content="object/name|default"/></td>
		<td class="silk-cms-row-actions">
		    <ul>
			<li><a tal:attributes="href php:this.link('object_edit', array('object_id' => object.object_id))" i18n:translate="string:Edit"/> | </li>
			<li><a tal:attributes="href php:this.link('object_delete', array('object_id' => object.object_id))" i18n:translate="string:Delete"/></li>
		    </ul>
		</td>
	    </tr>
	</tbody>
    </table>
    <div class="floatwrapper">
	<div class="lfloat"><a tal:attributes="href php:this.link('object_admin', array('type' => type.slug))" i18n:translate="string:See All"></a></div>
	<div class="silk-cms-pagination rfloat" tal:content="structure php:this.pagination(objects)"></div>
    </div>
</div>